import React from "react";
import MenuList from "./menuList";
import Logo from "./logo";
import { connect } from "react-redux";

import "assets/less/components/leftMenu.less";

const LeftMenu = (props) => {
    const { userData } = props;
    return (<div className="left-menu">
        <Logo userData={userData} />
        <MenuList />
    </div>)
}

export default connect(
    store => ({
        userData: store.home.userData
    })
)(LeftMenu);